#include "httpServer.hpp"

/*
    8.137.49.16:8080
*/
void Usage(std::string proc_name)
{
    std::cout << "Usage:\n\t" << proc_name << ": " << "port" << std::endl;
}
int main(int argc, char* argv[])
{
    if(argc != 2)
    {
        Usage(argv[0]);
        exit(4);
    }
    int port = atoi(argv[1]);
    std::unique_ptr<HTTPServer> svr(new HTTPServer(port));
    svr->Init();
    svr->Start();
    return 0;
}